<!DOCTYPE html>
<html>
<head lang="en">
    <world></world>
    <meta charset="UTF-8"/>
    <title>登录界面</title>
</head>
<body>
<#if msg!=""><span style="color: red">${msg}</span></#if>
<form action="/login/form" method="post">       <!--1-->
    <#--<c:if test="${param.error != null}">        <!--2&ndash;&gt;
        <p>
            Invalid username and password.
        </p>
    </c:if>
    <c:if test="${param.logout != null}">       <!--3&ndash;&gt;
        <p>
            You have been logged out.
        </p>
    </c:if>-->
    <p>
        <label for="username">用户名</label>
        <input type="text" id="username" name="username"/>        <!--4-->
    </p>
    <p>
        <label for="password">密码</label>
        <input type="password" id="password" name="password"/>    <!--5-->
    </p>
    <#--<input type="hidden"  name="${_csrf.parameterName}" value="${_csrf.token}"/>-->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
    <button type="submit" class="btn">登录</button>
</form>

</body>
</html>